<div class="zs-ibox">
	<table class="zs-form-tab">
		<tbody>
			<tr>
			   <td style="width:3%;min-width:60px;">报警类型：</td>
               <td style="width: 45%">  
               		<com-selecter  ng-change="onAlarmTypeChange"  ng-model="alarmType" data='[{"k":"allType","v":"全部"},{"k":"4","v":"数采仪掉线"},{"k":"1","v":"数据超标"},{"k":"3","v":"设备故障"},
               		{"k":"7","v":"数据缺失"},{"k":"8","v":"数据不变"},{"k":"9","v":"日累计流量超标"}]'></com-selecter>   
               		<div  style="float:left;margin:0px 0px 0px 20px;padding:3px 0px;">
	            	<label style="float:left;">&nbsp;&nbsp;状态：</label>
	                </div>
                	<com-single-check style="float:left"  ng-model="alarmStatus" data='alarmStatuseData'></com-single-check>           
               </td>
			</tr>
			<tr>
			   <td>报警数据来源：</td>
               <td>  
               		<com-selecter  ng-model="alarmDataSource" data="alarmDataSourceData"></com-selecter>              
               </td>
			</tr>
			<tr>
				<td>时间：</td>
				<td><label>起始日期</label> &nbsp; <ag-Datebox class="zs-input"
						ng-model="queryObject.start"></ag-Datebox> &nbsp; <label>结束日期</label>
					&nbsp; <ag-Datebox class="zs-input" ng-model="queryObject.end"></ag-Datebox>
					<input type="button" value="查询" class="zs-btn"
					ng-click="getAlarmInfoList()"></td>
			</tr>
		</tbody>
	</table>  
	<div style="overflow: auto;" ng-style="{height: (Map_H -133)+'px',width:(Map_W -10)+'px'}">
		<table class="zs-data-tab" style="min-width:1070px;width:100%">
			<thead>
				<tr>
					<th class="head" style="min-width:200px">监测点</th>
					<th class="head" ng-show="alarmType!=7&&alarmType!=9" style="min-width:80px">仪器名称</th>
					<th class="head" style="min-width:80px">报警类型</th>
					<th class="head" style="min-width:150px">报警起始时间</th>
					<th class="head" style="min-width:90px">持续时间(小时)</th>
					<th class="head" style="min-width:150px">报警更新时间 </th>
					<th class="head" ng-show="alarmType!=7&&alarmType!=8&&alarmType!=9"  style="min-width:80px">报警值</th>
					<th class="head" style="min-width:200px">故障说明</th>
					<th class="head" ng-show="alarmType==1" style="min-width:80px">报警下限</th>
					<th class="head" ng-show="alarmType==1" style="min-width:80px">报警上限</th>
					<th class="head" style="min-width:80px">推送角色</th>
					<th class="head" style="min-width:80px">推送用户</th>
					<th class="head" style="min-width:80px">是否恢复</th>
					<th class="head" style="min-width:120px">移动端是否推送</th>
					<th class="head" style="min-width:120px">短信是否推送</th>
					<th class="head" style="min-width:120px">微信是否推送</th>
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="curRow in AlarmInfoList.data"
					class="{{ isDoubleNum($index) ? 'even':'' }}">
					<td class="center"><a><label ng-bind="curRow.STATION_NAME"></label></a></td>
					<td class="center" ng-show="alarmType!=7&&alarmType!=9"><a><label ng-bind="curRow.PARAM_NAME"></label></a></td>
					<td class="center"><a><label ng-bind="curRow.TYPE_NAME"></label></a></td>
					<td class="center"><a><label ng-bind="curRow.START_TIME"></label></a></td>	
					<td class="center"><a><label ng-bind="curRow.CONTINUE_TIME_INT"></label></a></td>
					<td class="center"><a><label ng-bind="curRow.UPDATETIME"></label></a></td>	
					<td class="center" ng-show="alarmType!=7&&alarmType!=8&&alarmType!=9" ><a><label ng-bind="curRow.ALARM_VALUE"></label></a></td>
					<td class="center"><a ng-click="saveCause(curRow)"><label ng-bind="curRow.ALARM_CAUSE"></label></a></td>
					<td class="center" ng-show="alarmType==1" ><a><label ng-bind="curRow.ALARM_DOWNLIMIT"></label></a></td>
					<td class="center" ng-show="alarmType==1" ><a><label ng-bind="curRow.ALARM_UPLIMIT"></label></a></td>
					<td class="center" style="width:100px"><a><label ng-bind="curRow.C_ROLENAME"></label></a></td>
					<td class="center"><a><label ng-bind="curRow.USEREALNAME"></label></a></td>
					<td class="center"><a><label ng-bind="curRow.IS_RECOVER=='0'?'否':'是'"></label></a></td>
					<td class="center"><a><label>是</label></a></td> 
					<td class="center"><a style="cursor: pointer" ng-bind="curRow.SENDTYPE.indexOf('1')>=0?'是':'否'" ng-click="showAlarmDetail(curRow.GUID,'1')"></a></td>
					<td class="center"><a style="cursor: pointer" ng-bind="curRow.SENDTYPE.indexOf('2')>=0?'是':'否'" ng-click="showAlarmDetail(curRow.GUID,'2')"></a></td>
				</tr>
			</tbody>
		</table>
		<div class="zs-page">
			<a
				ng-click="waterDataCommon.firstPage(AlarmInfoList,queryObject)">首页</a>
			<a class="pre"
				ng-click="waterDataCommon.prePage(AlarmInfoList,queryObject)">上一页</a>
			<a class="next"
				ng-click="waterDataCommon.nextPage(AlarmInfoList,queryObject)">下一页</a>
			<a
				ng-click="waterDataCommon.lastPage(AlarmInfoList,queryObject)">尾页</a>
			共<strong><label
				ng-bind="AlarmInfoList.pageInfo.rowCount"></label></strong>条数据 - 第<strong><label
				ng-bind="AlarmInfoList.pageInfo.pageIndex"></label></strong>页 - 共<strong><label
				ng-bind="AlarmInfoList.pageInfo.pageCount"></label></strong>页
		</div>
	</div>
</div>
